public class Test {
    public static void test1(){
        //创建一颗二叉树
        BinaryTree2 binaryTree = new BinaryTree2();
        BinaryTree2.TreeNode root1 = binaryTree.createBinaryTree1();
        BinaryTree2.TreeNode root2 = binaryTree.createBinaryTree2();
        System.out.println(binaryTree.isSameTree(root1, root2));
        System.out.println("===================");
        System.out.println(binaryTree.isSubTree(root1, root2));
//        System.out.println("翻转之前二叉树的前序遍历：");
//        binaryTree.preOrder(root1);
//        System.out.println();
//        binaryTree.invertTree(root1);
//        System.out.println("翻转之后二叉树的前序遍历：");
//        binaryTree.preOrder(root1);
//        System.out.println();
        System.out.println("==========================");
        System.out.println(binaryTree.isBalancedTree(root1));
        System.out.println(binaryTree.isBalancedTree(root2));
        System.out.println("============================");
        System.out.println(binaryTree.isSymmetric(root1));

    }
    public static void main(String[] args) {
        test1();
    }
}
